package com.liang.serviceImpl;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.liang.dao.PingjiaDao;
import com.liang.pojo.Gorillaceo;
import com.liang.pojo.Pingjia;
import com.liang.service.PingjiaService;
@Service
public class PingjiaServiceImpl implements PingjiaService{
	@Autowired
	PingjiaDao pingjiaDao;
	
	public List<Pingjia> selectAllPingjiaBySid(int sid) {
		return pingjiaDao.selectAllPingjiaBySid(sid);
	}

	public int insertPingjia(Map<String,Object> map) {
		return pingjiaDao.insertPingjia(map);
	}

	public int updatePingjiaByUid(Map<String,Object> map) {
		return pingjiaDao.updatePingjiaByUid(map);
	}

	public int deletePingjiaByList(Gorillaceo gorillaceo) {
		return pingjiaDao.deletePingjiaByList(gorillaceo);
	}

	public int deletePingjiaByUser(Pingjia pingjia) {
		return pingjiaDao.deletePingjiaByUser(pingjia);
	}

	public int deletePingjiaBySidList(Gorillaceo gorillaceo) {
		return pingjiaDao.deletePingjiaBySidList(gorillaceo);
	}

}
